﻿namespace LevelEditors
{
    using System;
    using UnityEngine;
    using UnityEngine.EventSystems;

    public class UIPointerDownEventListener : MonoBehaviour, IEventSystemHandler, IPointerDownHandler
    {
        public Action<PointerEventData> onPointerDown;

        public void OnPointerDown(PointerEventData eventData)
        {
            if (this.onPointerDown != null)
            {
                this.onPointerDown(eventData);
            }
        }
    }
}

